//
//  StuInfoViewController.m
//  通讯录
//
//  Created by mafeng on 16/7/25.
//  Copyright © 2016年 mafeng. All rights reserved.
//

#import "StuInfoViewController.h"

@interface StuInfoViewController ()

@end

@implementation StuInfoViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    // 姓名标签
    UILabel *nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 150, 130, 30)];
    nameLabel.text = @"name:";
    [self.view addSubview:nameLabel];
    
    UILabel *nameInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(180, 150, 200, 30)];
    nameInfoLabel.text = self.name;
    [self.view addSubview:nameInfoLabel];
    
    // 性别标签
    UILabel *genderLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 200, 130, 30)];
    genderLabel.text = @"gender:";
    [self.view addSubview:genderLabel];
    
    UILabel *genderInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(180, 200, 200, 30)];
    genderInfoLabel.text = self.gender;
    [self.view addSubview:genderInfoLabel];
    
    // 年龄标签
    UILabel *ageLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 270, 130, 30)];
    ageLabel.text = @"age:";
    [self.view addSubview:ageLabel];
    
    UILabel *ageInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(180, 270, 200, 30)];
    ageInfoLabel.text = [self.age description];
    [self.view addSubview:ageInfoLabel];
    
    // 电话标签
    UILabel *phoneLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 340, 130, 30)];
    phoneLabel.text = @"phoneNumber:";
    [self.view addSubview:phoneLabel];
    
    UILabel *phoneInfoLabel = [[UILabel alloc] initWithFrame:CGRectMake(180, 340, 200, 30)];
    phoneInfoLabel.text = [self.phoneNumber description];
    [self.view addSubview:phoneInfoLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
